package com.vn.rainbow.exoalarm.db.settings;

import android.net.Uri;
import android.provider.BaseColumns;

import com.vn.rainbow.exoalarm.db.provider.AlarmProvider;
import com.vn.rainbow.exoalarm.db.table.AlarmSettingTable;
import com.vn.rainbow.exoalarm.db.table.DetailSettingTable;

public class DetailSettingColums implements BaseColumns {

	public static final String ID_ALARM = "ID_ALARM";
	public static final String TIME_ALARM = "TIME_ALARM";
	public static final String ACTIVE_ALARM = "ACTIVE_ALARM";

	public static final Uri CONTENT_URI = Uri.parse("content://"
			+ AlarmProvider.AUTHORITY + "/" + DetailSettingTable.TABLE_NAME
			+ "?" + AlarmProvider.PARAMETER_NOTIFY + "=true");

	public static final Uri CONTENT_URI_NO_NOTIFICATION = Uri
			.parse("content://" + AlarmProvider.AUTHORITY + "/"
					+ DetailSettingTable.TABLE_NAME + "?"
					+ AlarmProvider.PARAMETER_NOTIFY + "=false");

	public static Uri getContentUri(long id, boolean notify) {
		return Uri.parse("content://" + AlarmProvider.AUTHORITY + "/"
				+ AlarmProvider.PARAMETER_NOTIFY + "/" + id + "?"
				+ AlarmProvider.PARAMETER_NOTIFY + "=" + notify);
	}

}
